export function useSetActionIcon() {
    const canvas = new OffscreenCanvas(16, 16);
    const context:any = canvas.getContext('2d');
    context.clearRect(0, 0, 16, 16);
    context.fillStyle = '#00FF00';  // Green
    context.fillRect(0, 0, 16, 16);
    const imageData = context.getImageData(0, 0, 16, 16);
    browser.action.setIcon({imageData: imageData}, () => { /* ... */ });
}